import baseUrl from './base-url-config'

const { product: prefix } = baseUrl

export default {
  // 获取表格数据
  getTableDataAPI: {
    url: `${prefix}/edc/builder/project/user/getProjectUser`,
    method: 'GET',
  },
  // 新增人员
  addProjectPersonAPI: {
    url: `${prefix}/edc/builder/project/user/setProjectUser`,
    method: 'POST',
  },
  // 移除项目人员
  removeProjectPersonAPI: {
    url: `${prefix}/edc/builder/project/user/deleteProjectUser`,
    method: 'PUT',
  },
  // 获取所有人员
  getProjectUserListAPI: {
    url: `${prefix}/edc/builder/project/user/getProjectUserList`,
    method: 'GET',
  },
  // 记录用户登录项目时间
  recordLoginProjectAPI: {
    url: `${prefix}/edc/builder/project/user/recordLoginProject`,
    method: 'GET',
  },
  // 导出项目人员
  exportProjectPersonAPI: {
    url: `${prefix}/edc/builder/project/user/export`,
    method: 'POST',
    responseType: 'blob',
  },
}
